# coding:utf-8
import requests


def main():
    url = 'http://www.baidu.com'
    response = requests.get(url)
    print(type(response))  # 输出响应对象的内容
    print(response.status_code)  # 输出响应状态码
    print(response.headers)  # 输出响应的头信息
    print(response.text)  # 输出响应的内容


if __name__ == "__main__":
    main()
